package handlers.tests;

import org.restlet.data.MediaType;
import org.restlet.data.Status;
import org.softmed.rest.config.Handler;
import org.softmed.rest.server.core.handler.HandlerProcessParameters;
import org.softmed.rest.server.core.handler.IHandlerSolution;

public class SimpleJavaClass implements IHandlerSolution {

	@Override
	public boolean isContinueProcessing() {
		return false;
	}

	@Override
	public void solve(Handler handler, HandlerProcessParameters parameters)
			throws Throwable {
//		System.out.println("inside Simple Java Class  script");

		parameters.getResponse().setStatus(Status.SUCCESS_OK);
		parameters.getResponse().setEntity(
				"This is the result of a java class", MediaType.TEXT_PLAIN);

//		System.out.println("inside Simple Java Class  script");
	}
}
